import request from '@/utils/request'

// 查询信息咨询列表
export function listContent(query) {
  return request({
    url: '/consultation/content/list',
    method: 'get',
    params: query
  })
}

// 查询信息咨询详细
export function getContent(consultationId) {
  return request({
    url: '/consultation/content/' + consultationId,
    method: 'get'
  })
}

// 新增信息咨询
export function addContent(data) {
  return request({
    url: '/consultation/content',
    method: 'post',
    data: data
  })
}

// 修改信息咨询
export function updateContent(data) {
  return request({
    url: '/consultation/content',
    method: 'put',
    data: data
  })
}

// 删除信息咨询
export function delContent(consultationId) {
  return request({
    url: '/consultation/content/' + consultationId,
    method: 'delete'
  })
}

// 导出信息咨询
export function exportContent(query) {
  return request({
    url: '/consultation/content/export',
    method: 'get',
    params: query
  })
}